<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <script>
        let arr = ["lyz", "xmy", "zzq", "zjj"]
        
        console.log(arr.push("hzt"))
        console.log(arr)
        console.log("")

        console.log( arr.pop())
        console.log(arr)
        console.log("")

        console.log(arr.unshift("hzt"))
        console.log(arr)
        console.log("")

        console.log(arr.shift())
        console.log(arr)
        console.log("")

        console.log(arr.splice(0, 2, "hzt"))
        console.log(arr)
        console.log("")

        console.log(arr)
        console.log(arr.reverse())
        console.log("")


        console.log(arr)
        console.log(arr.slice(0, 2))
        console.log("")

        console.log( arr)
        let arr2 = ["tunan", "tunan6"]
        console.log( arr2)
        arr = arr.concat(arr2)
        console.log( arr)
        console.log("")

        console.log( arr)
        console.log( arr.includes("tunan"))
        console.log( arr.includes("z"))
        console.log("")
    </script>
</body>
</html>